﻿<UserControl
  x:Class="Renren.Controls.CommentBox"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  mc:Ignorable="d"
  FontFamily="{StaticResource PhoneFontFamilyNormal}"
  FontSize="{StaticResource PhoneFontSizeNormal}"
  Foreground="{StaticResource PhoneForegroundBrush}"
  d:DataContext="{d:DesignData /SampleData/CommentModel.xaml}">

  <Grid x:Name="LayoutRoot">
    <StackPanel Orientation="Horizontal">
      <Image Source="{Binding HeadUrl}" Height="50" Width="50" VerticalAlignment="Top" Margin="8,6,0,0" />
      <StackPanel Width="400">
        <StackPanel Orientation="Horizontal">
          <TextBlock Text="{Binding Name}" TextWrapping="Wrap" Width="327" FontSize="26"
                       Style="{StaticResource PhoneTextExtraLargeStyle}" HorizontalAlignment="Left" />
          <Grid Width="50" Height="50" Margin="0,5,0,0">
            <Image Source="/Images/reply.png" Height="25" Margin="0,-14,0,0" Opacity="0.5"/>
          </Grid>
        </StackPanel>
        <TextBlock Text="{Binding UpdateTime}" TextWrapping="Wrap" 
                     Margin="12,-20,12,0" Style="{StaticResource PhoneTextSubtleStyle}"
                     HorizontalAlignment="Left" />
        <TextBlock Text="{Binding Text}" TextWrapping="Wrap" Margin="12,0" />
      </StackPanel>
    </StackPanel>
  </Grid>
</UserControl>
